<script>
	export default {
		onLaunch: function() {
			console.log('App Launch')
			// 获取页面宽高
			let appWidtht,appHeight = 0
			uni.getSystemInfo({
				success: function(res) {
					appWidtht = res.windowWidth + "px"
					appHeight = res.windowHeight + "px"
				}
			});
			uni.setStorage({
			    key: 'appSize',
			    data: [appWidtht,appHeight],
			    success: function () {
			        console.log(appWidtht,appHeight);
			    }
			});
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style lang="scss">
	/*每个页面公共css */
	@import "uview-ui/index.scss";
</style>
